<!DOCTYPE html>
<html>
	<head lang="fr">
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="icon" href="images/icone_site/favicon.jpg">
		<title>Gamekillers - Membre</title>

		<!-- Bootstrap -->
		<link href="css/bootstrap.min.css" rel="stylesheet">

		<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
		<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
		<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
		<![endif]-->
		<link href="css/complement.css" rel="stylesheet">
	</head>
	<body>
		<?php
			//include_once("bar_connect.html");
			include_once("accessoires/header.html");
			include_once("accessoires/menu.html");
		?>
		<section class="page">
			<h3 class="underline header_membre">
				Membre : <?php echo $pseudo_membre; ?>
			</h3>
			<div class="thumbnail">
				<h4>Informations sur <?php echo $pseudo_membre; ?></h4>
				<img alt="avatar membre" class="img-rounded img_membre" src="<?php echo $avatar_membre; ?>" style="height:100px;width:100px;display: inline-block; vertical-align: top"/>
				<div style="display: inline-block;margin-bottom: 20px;">
					<p>Nom : <b><?php echo $nom_membre; ?></b></p>
					<p>Prénom : <b><?php echo $prenom_membre; ?></b></p>
					<p>Statut : <span class="small_membre"><?php echo $statut_membre; ?></span></p>
				</div>
				<?php if($num_art != 0) { ?><!-- on récupere les article de l'utilisateur -->
				<div class="panel panel-default">
				<div class="panel-heading" role="tab" style="text-align: center">
					<h4 class="panel-title">
						<b>Il y a <?php echo $num_art; ?> article<?php if($num_art>1) echo "s"; ?> publié<?php if($num_art>1) echo "s"; ?> par <i><?php echo $pseudo_membre; ?></i></b>
					</h4>
				</div>
				<table class="table">
						<tr>
							<th>Titre de l'article</th>
							<th>Type d'article</th>
							<th>Note totale</th>
							<th>Date de création ou de mise à jour</th>
						</tr>
						<?php $i=0; while (isset($id_article_user[$i])){ ?>
						<tr>
							<td id="center_cellule"><a href="article.php?article=<?php echo $id_article_user[$i]; ?>"><?php echo $title_article_user[$i]; ?></a></td>
							<td id="center_cellule"><?php echo $libelle_article_user[$i]; ?></td>
							<td id="center_cellule">
								<?php 	if (isset($note_totale_article_user[$i])){
								echo $note_totale_article_user[$i];
								}else{ ?>
									Pas encore de notes
								<?php } ?>
							</td>
							<td id="center_cellule"><?php echo $date_article_user[$i]; ?></td>
						</tr>
						<?php $i++; } ?>
					</table>
					</div>
				<?php }else{ ?>
				<div class="message_profil" style="margin-bottom:15px;"><i><?php echo $pseudo_membre; ?></i> n'a publié aucun article</div>
				<?php } ?>
			</div>
		</section>
		<?php
			include_once("accessoires/footer.html");
		?>
		<!-- jQuery -->
		<script src="js/jquery-2.1.3.min.js"></script>
		<!-- bootstrap js-->
		<script src="js/bootstrap.min.js"></script>
	</body>
</html>